<div class="isi">

    <div id="tabs">
        <ul>
            <li><a href="#tabs-1">Data Retur Pengiriman Proses</a></li>
            <li><a href="#tabs-2">Data Retur Pengiriman Sukses</a></li>
        </ul>
        <div id="tabs-1" style="padding: 10px 2px 2px 2px;">

            <table id="laporan" class="display"  >
                <thead>
                    <tr>
                        <th width="5%">No</th>
                        <th width="20%">Retur ID</th>
                        <th>Tgl Retur</th>
                        <th>Nama Member</th>
                        <th>Tujuan Pengiriman</th>
                        <th width="5%">Tindakan</th>
                    </tr>            
                </thead>
                <tbody>
                    <?php
                    $n = 1;
                    $img_lihat = $this->lib_button->lihat_icon();
                    foreach ($list_pemesanan as $dta) {
                        $link_lihat = anchor('admin_pengiriman_retur/view_det/' . $dta->retur_id, $img_lihat);
                        if ($dta->status_retur == 2 && $dta->status_kirim_retur != 1) {
                            echo "<tr>";
                            echo "<td>$n </td>";
                            echo "<td>$dta->retur_id </td>";
                            echo "<td>$dta->tgl_retur </td>";
                            echo "<td> $dta->nama_depan $dta->nama_belakang  </td>";
                            echo "<td> $dta->nama_kota2</td>";
                            echo "<td>$link_lihat</td>";
                            echo "</tr>";
                            $n++;
                        }
                    }
                    ?>
                </tbody>
            </table>   

        </div>


        <div id="tabs-2" style="padding: 10px 2px 2px 2px;">
            <table id="laporan2" class="display"  >
                <thead>
                    <tr>
                        <th width="5%">No</th>
                        <th width="20%">Retur ID</th>
                        <th>Tgl Retur</th>
                        <th>Nama Member</th>
                        <th>Tujuan Pengiriman</th>
                        <th>Jenis Pengirim</th>
                        <th>Nomer Pengiriman</th>
                        <th>Tgl Kirim</th>
                        <th width="5%">Tindakan</th>
                    </tr>            
                </thead>
                <tbody>
                    <?php
                    $n = 1;
                    foreach ($list_pemesanan as $dta) {
                        if ($dta->status_retur == 2 && $dta->status_kirim_retur == 1) {
                            $link_lihat = anchor('admin_pengiriman_retur/view_det/' . $dta->retur_id, $img_lihat);
                            echo "<tr>";
                            echo "<td>$n </td>";
                            echo "<td>$dta->retur_id </td>";
                            echo "<td>$dta->tgl_retur </td>";
                            echo "<td> $dta->nama_depan $dta->nama_belakang  </td>";
                            echo "<td> $dta->nama_kota2</td>";
                            echo "<td> $dta->nama_mitra</td>";
                            echo "<td> $dta->nomer_pengiriman</td>";
                            echo "<td> $dta->tgl_pengiriman_retur </td>";
                            echo "<td>$link_lihat</td>";
                            echo "</tr>";
                            $n++;
                        }
                    }
                    ?>
                </tbody>
            </table>                  
        </div>
    </div>        

    <div class="clear"></div>
</div>